<?php


namespace plugin\coleopenapi\app\middleware;


use Webman\Http\Request;
use Webman\Http\Response;
use Webman\MiddlewareInterface;

/**
 * 统计api请求
 * Class StatApiMiddleware
 * @package plugin\coleopenapi\app\middleware
 */
class StatApiMiddleware implements MiddlewareInterface
{

    public function process(Request $request, callable $handler): Response
    {
        /** @var Response $response */
        $response = $handler($request);
        return $response;
    }
}